package com.nju.edu.erp.dao;

import com.nju.edu.erp.model.po.AccountPO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AccountDao {
    List<AccountPO> findAll();
    int create(AccountPO accountPO);
    int update(AccountPO accountPO);
    int delete(int id);
    AccountPO findOneByName(String name);
}
